	<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp" %>
<!DOCTYPE html>
<html>
<head>
<title>已预约企业列表</title>
 <%@ include file="/WEB-INF/component/commonCSS.jsp" %>
<!--[if lt IE 9]>
        <script src="lib/js/html5shiv.min.js"></script>
        <script src="lib/js/respond.min.js"></script>
    <![endif]-->
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
	<section class="content-header">
		<h1>已预约企业列表</h1>
		<ol class="breadcrumb">
			<li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i>首页</a></li>
			<li class="active">药品招标管理</li>
            <li class="active">预约管理</li>
			<li class="active">预约</li>
			<li class="active">预约管理</li>
			<li class="active">预约项目列表</li>
			<li class="active">已预约企业列表</li>
		</ol>
	</section>

	<section class="content">
		<div class=" box box-success">
			<div class="box-body">
				<div class=" form-inline">
					<div class="form-group form-group-xs">
						<label for="txtDrugName">预约日期：</label> 
						 <input style="width: 100px;" placeholder="预约日期" name="subscribeDate" id="subscribeDate" type="text"  value="" readonly="readonly" data-provide="datepicker" data-date-fmt="yyyy-MM-dd" placeholder="yyyy-mm-dd">
					</div>
					
						<button type="button" onclick="likeQuery();" class="btn btn-success btn-sm">查&nbsp;询</button>
				   </div>
			</div>
		</div>
		<table class="jqgrid" id="gridlist"></table>
		<div id="gridpage"></div>
		<div class=" box box-warning bottongroup">
			<%-- <a href="${ctx }/bidSubscribe/toCenterSubscribeJsp.html" class="btn btn-default btn-sm">新增预约</a> --%>
			<a href="javascript:back();" class="btn btn-default btn-sm">返&nbsp;&nbsp;回</a>
		</div>
	</section>
   <%@ include file="/WEB-INF/component/commonJS.jsp" %>
    <script src="${ctx}/lib/plugins/daterangepicker/moment.js"></script>
    <script src="${ctx}/lib/plugins/daterangepicker/daterangepicker.js"></script>
	<script type="text/javascript">
		$(function() {
			$("#gridlist").jqGrid({
								url : "getSubscribeCompListData.html",
								mtype : "POST",
								datatype : "json",
								postData : {"bidSubscribeId":"${bidSubscribeId}","number":"${number}"},
								autowidth : true,
								height : 270,
								colNames : [ '预约id', '企业名称', '预约日期','预约时间' ],
								colModel : [
								            {name : 'bidSubscribeId',width : 100,align : "center",hidden : true,sortable : false},
											{name : 'compName',width : 200,align : "left",sortable : false},
										    {name : 'subscribeDate',width : 160,align : "center",sortable : false  },
										    {name : 'processTimeOneStr',width : 120,align : "center",sortable : false,
												formatter : function(val, opts,
														rowdata) {
													return rowdata.subscribeStarttimeStr+" - "+rowdata.subscribeEndtimeStr;
												}
										    }
										
										],
								rowNum : 20,
								rowList : [ 10, 20, 50,100 ],
								rownumbers : true,
								pager : "#gridpage",
								multiselect : true,
								viewrecords : true,
								caption : "已预约企业列表",
								jsonReader : {
									repeatitems : false,
									id : "ids"
								}
							});
			$("#gridlist").jqGrid('navGrid', '#gridpage', {
				add : false,
				edit : false,
				del : false,
				search : false,
				refresh : false
			});

			 $(window).trigger("resize");
		});
		
		
		function back(){
			window.location.href="${ctx}/bidSubscribe/toBidSubscribeListJsp.html?projId=${projId}";
		}
		
		function likeQuery() {
			var subscribeDate = $("#subscribeDate").val();
			$("#gridlist").jqGrid('setGridParam',{
				       	    	datatype:'json',
				                postData:{
				                	"subscribeDate":subscribeDate
				                	},
				                page : 1
			}).trigger("reloadGrid");
		}
		
      
	</script>
</body>
</html>









